package models

import "go-admin/common/models"

type SysTemplateType struct {
	models.Model
	ParentId int    `json:"parentId" gorm:""`           //上级模版类型
	TypeName string `json:"typeName"  gorm:"size:128;"` //模版类型名称
	Sort     int    `json:"sort" gorm:"size:4;"`        //排序
	Status   int    `json:"status" gorm:"size:4;"`      //状态
	models.ControlBy
	models.ModelTime
	DataScope string            `json:"dataScope" gorm:"-"`
	Params    string            `json:"params" gorm:"-"`
	Children  []SysTemplateType `json:"children" gorm:"-"`
}

func (SysTemplateType) TableName() string {
	return "sys_template_type"
}

func (e *SysTemplateType) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *SysTemplateType) GetId() interface{} {
	return e.Id
}
